#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

void SLTest1()
{
	//SLTNode s;
	SLTNode* plist = NULL;
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPrint(plist);
	SLPushBack(&plist, 4);
	SLPushBack(&plist, 5);
	SLPushBack(&plist, 6);
	SLPrint(plist);
	SLPopFront(&plist);
	SLPrint(plist);
	SLTNode* tail = SLTFind(plist,4);
	SLInsert(&plist, tail, 3);
	SLPrint(plist);


	SLInsertAfter(tail, 7);
	SLPrint(plist);

	/*SLErase(&plist, tail);
	SLPrint(plist);*/

	SLEraseAfter(tail);
	SLPrint(plist);
}
int main()
{
	SLTest1();
	return 0;
}